package com.lianboke.link.ad.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.lianboke.link.ad.utils.DeviceUtils;
import com.lianboke.link.ad.utils.KLog;

/**
 * 升级接收器
 * Created by admin on 2017/11/20.
 */

public class UpdateBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            if (intent != null ) {
                Intent intentNet = new Intent();
                intentNet.setAction("android.myapp.update.updatemy");
                intentNet.putExtra("data", intent.getAction());
                context.sendBroadcast(intentNet);
            }
        }catch (Exception e){
            KLog.e("device_tag","-----net work type  action----Exception---:"+e.getMessage());
        }
    }
}
